﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="category.aspx.cs" Inherits="category" %>

<%@ Register Src="UC/hangsx.ascx" TagName="hangsx" TagPrefix="uc1" %>
<%@ Register Src="UC/locsanpham.ascx" TagName="locsanpham" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="css_js/stylecategory.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        var isHomePage = "false";
        $(document).ready(function () {
            $('.mainDiv').css({ position: "absolute", top: "36px" });
        });
        loadMenu(); 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="clearfix">
    </div>
    <div id="maincategory">
        <div id="map-path">
            <a href="#">sieuthi >> danh muc con</a></div>
        <div id="cat-left">
            <div class="frame_left">
                <div class="tieude">
                    <h6>
                        Thương hiệu</h6>
                </div>
                <asp:Panel ID="Panel1" runat="server">
                    <asp:DataList ID="DataList1" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
                        <ItemTemplate>
                            <div id="hangsx">
                                <asp:ImageButton ID="ImageButton1" runat="server" Width="95px" Height="50px" OnCommand="ImageButton1_Command"
                                    CommandArgument='<%#Eval("Manhasanxuat")%>' PostBackUrl='<%# "category.aspx" +"?catID="+ cateID+ "&nsx=" + Eval("Manhasanxuat") %>' />
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                </asp:Panel>
            </div>
            <div class="frame_left">
                <div class="tieude">
                    <h6>
                        Tìm theo tính năng</h6>
                </div>

                <asp:Repeater runat="server" ID="rptChon">
                    <HeaderTemplate>
                        <asp:Label ID="Label1" runat="server" Text="Ban vua chon"></asp:Label>
                        <br />
                        <br />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <div>
                            <asp:Label ID="Label3" runat="server" Text='<%#Eval("Tennhomboloc")%>'></asp:Label>
                            <div id="banvuachon">
                                <asp:Label ID="Label2" runat="server" Text='<%#Eval("Tenboloc")%>'></asp:Label>
                                <asp:LinkButton ID="Linkchon" runat="server" CommandArgument='<%#Eval("Manhomboloc")%>'
                                    OnCommand="Huy_Command" Text="huy"></asp:LinkButton>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
                <asp:Repeater ID="rptParent" runat="server" OnItemDataBound="rptParent_ItemDataBound">
                    <ItemTemplate>
                        <div>
                            <asp:Label ID="lblTen" runat="server" Text='<%#Eval("Tennhomboloc")%>'></asp:Label>
                            <asp:HiddenField ID="HiddenParentID" Value='<%#Eval("Manhomboloc")%>' runat="server" />
                            <asp:Repeater runat="server" ID="rptChild">
                                <ItemTemplate>
                                    <div>
                                        <asp:LinkButton ID="LinkButton1" runat="server" OnCommand="LinkButton1_Command" CommandArgument='<%#Eval("Maboloc")%>'
                                            Text='<%#Eval("Tenboloc")%>'></asp:LinkButton>
                                    </div>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div class="frame_left">
                <div class="tieude">
                    <h6>
                        Sản phẩm đã xem</h6>
                </div>
            </div>
        </div>
        <div id="cat-right">
            <div class="panelDiv">
            </div>
            <div class="listsp">
                <!------------ddata list san pham ne -->
                <asp:DataList ID="DataListSP" runat="server" RepeatColumns="5" Width="100%" Style="margin-top: 0px"
                    RepeatDirection="Horizontal">
                    <ItemTemplate>
                        <div class="sanpham">
                            <div class="spImage">
                                <a id="Link1" runat="server" href='<%# "ProductDetail.aspx" +"?catID="+ cateID+ "?pId=" + Eval("Masanpham") %>'>
                                    <asp:Image ID="Image1" runat="server" ImageUrl="#" />
                                </a>
                            </div>
                            <div class="spDetails">
                                <div class="spListHead">
                                    <asp:Label ID="lblTen" runat="server" Text='<%#Eval("Tensanpham")%>'></asp:Label>
                                </div>
                                <span class="spListItem">
                                    <asp:Label ID="lblGia" runat="server" Text='<%# Eval("Giaban", "{0:0,0 VNĐ}") %>'></asp:Label>
                                </span>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
                <!-- het data list -->
            </div>
        </div>
    </div>
</asp:Content>
